﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity.Models
{
    [Table("MessageNotice")]
    public class MessageNotice
    {
        [Key]
        public string MessageId { get; set; }//varchar(50) PRIMARY KEY 记录Id(uuid)
        public string? CompanyNo { get; set; }//Varchar(50) FK:公司代码

        public DateTime? NoticeTime { get; set; }//通知时间
        public string? NoticeContent { get; set; }//Varchar(1000)   通知内容
        public string? AlarmRecordId { get; set; }//varchar(50) FK:关联的报警记录
        public int? TargetType { get; set; }//int 接收人员类型1-责任人2-客户
        public string? MobileNo { get; set; }//Varchar(50) 接收人员电话
        public int? DutyOfficerId { get; set; }//Int FK:责任人Id
        public int? DeviceId { get; set; }//Int FK:设备Id
        public string? ExtData { get; set; }//json 扩展数据
        public int? IsRead { get; set; }//int 已读标志0 – 未读1 – 已读
    }
}
